import Cookies from 'js-cookie';

const TokenKey = 'Admin-Token';
const ProfileKey = 'User-Profile';

export function getToken() {
    return Cookies.get(TokenKey);
}

export function setToken(token: string) {
    return Cookies.set(TokenKey, token, { expires: 3 });
}

export function removeToken() {
    return Cookies.remove(TokenKey);
}

export function getUserprofile() {
    return Cookies.get(ProfileKey);
}

export function setUserprofile(payload: string) {
    return Cookies.set(ProfileKey, payload);
}

export function removeUserprofile() {
    return Cookies.remove(ProfileKey);
}
